Dynomotion

Group: DynoMotion Message: 14309 From: daveymahomh600e Date: 12/27/2016
Subject: Gamepad vs Joystick Control
Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.


Group: DynoMotion Message: 14310 From: Moray Cuthill Date: 12/27/2016
Subject: Re: Gamepad vs Joystick Control
Does the gamepad have analogue direction controls, or basic buttons?

The joystick will have analogue controls, and there should be some method to adjust the deadband zone. I've not used a joystick with windows for years, so can't help you with where the calibration setting scan be found.

Moray

On Tue, Dec 27, 2016 at 10:27 PM, david.m.stevenson@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.



Group: DynoMotion Message: 14311 From: David Stevenson Date: 12/27/2016
Subject: Re: Gamepad vs Joystick Control
Hi Moray,

The gamepad is a standard Logitech F710 (wireless) or an F310 (wired). The joystick is a new(ish) product also from Logitech, but also regular USB connection. I think it is in the deadband, but it seems to be doing funny things to KMotionCNC.

Regards,

David.

On 12/27/2016 5:43 PM, Moray Cuthill moray.cuthill@... [DynoMotion] wrote:
 
Does the gamepad have analogue direction controls, or basic buttons?

The joystick will have analogue controls, and there should be some method to adjust the deadband zone. I've not used a joystick with windows for years, so can't help you with where the calibration setting scan be found.

Moray

On Tue, Dec 27, 2016 at 10:27 PM, david.m.stevenson@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


Group: DynoMotion Message: 14312 From: Tom Kerekes Date: 12/27/2016
Subject: Re: Gamepad vs Joystick Control

Hi David,

You might try this:

http://www.howtogeek.com/241421/how-to-calibrate-your-gaming-controller-in-windows-10/

Regard

TK


On 12/27/2016 3:44 PM, David Stevenson david.m.stevenson@... [DynoMotion] wrote:
 

Hi Moray,

The gamepad is a standard Logitech F710 (wireless) or an F310 (wired). The joystick is a new(ish) product also from Logitech, but also regular USB connection. I think it is in the deadband, but it seems to be doing funny things to KMotionCNC.

Regards,

David.

On 12/27/2016 5:43 PM, Moray Cuthill moray.cuthill@... [DynoMotion] wrote:
 
Does the gamepad have analogue direction controls, or basic buttons?

The joystick will have analogue controls, and there should be some method to adjust the deadband zone. I've not used a joystick with windows for years, so can't help you with where the calibration setting scan be found.

Moray

On Tue, Dec 27, 2016 at 10:27 PM, david.m.stevenson@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com



Group: DynoMotion Message: 14313 From: David Stevenson Date: 12/28/2016
Subject: Re: Gamepad vs Joystick Control

Hi Tom,

I did try calibrating the new stick before I posted. This morning I double checked and there is definitely some kind of conflict between the new joystick and KMotionCNC. The machine won't home or initialize with the joystick connected. This is with the latest Windows 10 update installed.

Regards,
David.

On 12/27/2016 9:12 PM, Tom Kerekes tk@... [DynoMotion] wrote:
 

Hi David,

You might try this:

http://www.howtogeek.com/241421/how-to-calibrate-your-gaming-controller-in-windows-10/

Regard

TK


On 12/27/2016 3:44 PM, David Stevenson david.m.stevenson@... [DynoMotion] wrote:
 

Hi Moray,

The gamepad is a standard Logitech F710 (wireless) or an F310 (wired). The joystick is a new(ish) product also from Logitech, but also regular USB connection. I think it is in the deadband, but it seems to be doing funny things to KMotionCNC.

Regards,

David.

On 12/27/2016 5:43 PM, Moray Cuthill moray.cuthill@... [DynoMotion] wrote:
 
Does the gamepad have analogue direction controls, or basic buttons?

The joystick will have analogue controls, and there should be some method to adjust the deadband zone. I've not used a joystick with windows for years, so can't help you with where the calibration setting scan be found.

Moray

On Tue, Dec 27, 2016 at 10:27 PM, david.m.stevenson@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


Group: DynoMotion Message: 14314 From: David Stevenson Date: 12/28/2016
Subject: Re: Gamepad vs Joystick Control

Hi Tom,

I did try calibrating the new stick before I posted. This morning I double checked and there is definitely some kind of conflict between the new joystick and KMotionCNC. The machine won't home or initialize with the joystick connected. This is with the latest Windows 10 update installed.

Regards,
David.

On 12/27/2016 9:12 PM, Tom Kerekes tk@... [DynoMotion] wrote:
 

Hi David,

You might try this:

http://www.howtogeek.com/241421/how-to-calibrate-your-gaming-controller-in-windows-10/

Regard

TK


On 12/27/2016 3:44 PM, David Stevenson david.m.stevenson@... [DynoMotion] wrote:
 

Hi Moray,

The gamepad is a standard Logitech F710 (wireless) or an F310 (wired). The joystick is a new(ish) product also from Logitech, but also regular USB connection. I think it is in the deadband, but it seems to be doing funny things to KMotionCNC.

Regards,

David.

On 12/27/2016 5:43 PM, Moray Cuthill moray.cuthill@... [DynoMotion] wrote:
 
Does the gamepad have analogue direction controls, or basic buttons?

The joystick will have analogue controls, and there should be some method to adjust the deadband zone. I've not used a joystick with windows for years, so can't help you with where the calibration setting scan be found.

Moray

On Tue, Dec 27, 2016 at 10:27 PM, david.m.stevenson@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


Group: DynoMotion Message: 14315 From: Tom Kerekes Date: 12/28/2016
Subject: Re: Gamepad vs Joystick Control

Hi David,

How ell did it calibrate?  What were the results?

KMotionCNC makes a standard Windows call to: joyGetPosEx(JOYSTICKID1,&ji).  Its up to the Joystick manufacturer to make sure it responds appropriately.  You can search the code for this to see how it is used.

Does it sporadically move or drift as if someone is holding the joystick in some direction slightly?

Windows returns joystick positions as a signed 16-bit integer (+/-32767 range).  The code below sets a deadband range of +/-1600 or +/-5%.  This should be more than sufficient to avoid commanding any motion for most joysticks if they are calibrated properly.

What is the problem you have with homing?  Is it the same as occurs with a normal Gamepad if pushing the joystick slightly when it is homing?

If you disable the Gamepad in Tool Setup are there still problems homing?  Or only when enabled?


BTW I still have the Microsoft Force Feedback Joystick that we purchased because I thought it would be so cool to have active force feedback for teaching your Spinning machines.  But I guess you thought it was too big and never liked the idea.

Image


Regards

TK





double CKMotionCNCDlg::DoJoyAxis(int axis, int joystick)
{
    double v;

    v = joystick-0x7fff;
    if (ThreadIsExecuting) v=0;
    if (fabs(v) < 1600) v=0;

    v *= m_JogSpeed[axis] * m_JogSpeedOverride[axis] * m_JogSpeedFactor / 32768.0;

    return v;
}


On 12/28/2016 8:41 AM, David Stevenson david.m.stevenson@... [DynoMotion] wrote:
 

Hi Tom,

I did try calibrating the new stick before I posted. This morning I double checked and there is definitely some kind of conflict between the new joystick and KMotionCNC. The machine won't home or initialize with the joystick connected. This is with the latest Windows 10 update installed.

Regards,
David.

On 12/27/2016 9:12 PM, Tom Kerekes tk@... [DynoMotion] wrote:
 

Hi David,

You might try this:

http://www.howtogeek.com/241421/how-to-calibrate-your-gaming-controller-in-windows-10/

Regard

TK


On 12/27/2016 3:44 PM, David Stevenson david.m.stevenson@... [DynoMotion] wrote:
 

Hi Moray,

The gamepad is a standard Logitech F710 (wireless) or an F310 (wired). The joystick is a new(ish) product also from Logitech, but also regular USB connection. I think it is in the deadband, but it seems to be doing funny things to KMotionCNC.

Regards,

David.

On 12/27/2016 5:43 PM, Moray Cuthill moray.cuthill@... [DynoMotion] wrote:
 
Does the gamepad have analogue direction controls, or basic buttons?

The joystick will have analogue controls, and there should be some method to adjust the deadband zone. I've not used a joystick with windows for years, so can't help you with where the calibration setting scan be found.

Moray

On Tue, Dec 27, 2016 at 10:27 PM, david.m.stevenson@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com



Group: DynoMotion Message: 14316 From: David Stevenson Date: 12/28/2016
Subject: Re: Gamepad vs Joystick Control [1 Attachment]

Hi Tom,

I didn't record the values, but I can get them if you need them. The test windows all seemed to show the results one would expect from the joystick.

My homing program sets up the axis parameters and then pulls back the Y axis until it sees the limit switch and then pulls it back further at a slower rate until the SnapAmp measures a current rise to detect a hard stop for zeroing purposes. Same thing after that for the X axis.

With the regular gamepad plugged in everything works as expected. With the new stick (which is a force-feedback) plugged in, as soon as the Y axis starts it's pullback for the limit it moves a few thousands of an inch stops for about 10 seconds, then the X moves a few thou and stops, then the Y moves a bit more then X again, etc. Neither axis even really seems to move in the proper direction. While it is in this state I can click the jog buttons on the screen and move the slide, but it doesn't want to stop once it starts going, so I have to Estop it.

It doesn't seem to be moving as if the calibration is off, but more like it's turned KMotionCNC into a zombie.

Now here's something interesting... I powered down the machine, plugged the joystick in and powered it back up. De-selected gamepad in ToolSetup and the machine homed properly, but Windows was playing it's little tune that something was connecting, then disconnecting, over and over until the machine finished homing. The slide jogged properly with the screen controls, but the stick wouldn't do anything, as expected. So I opened the teaching program and the joystick worked very nicely! I haven't tried it with material yet, but I expect the force feedback will work too.

Best regards,
David.

On 12/28/2016 1:20 PM, Tom Kerekes tk@... [DynoMotion] wrote:
 

Hi David,

How ell did it calibrate?  What were the results?

KMotionCNC makes a standard Windows call to: joyGetPosEx(JOYSTICKID1,&ji).  Its up to the Joystick manufacturer to make sure it responds appropriately.  You can search the code for this to see how it is used.

Does it sporadically move or drift as if someone is holding the joystick in some direction slightly?

Windows returns joystick positions as a signed 16-bit integer (+/-32767 range).  The code below sets a deadband range of +/-1600 or +/-5%.  This should be more than sufficient to avoid commanding any motion for most joysticks if they are calibrated properly.

What is the problem you have with homing?  Is it the same as occurs with a normal Gamepad if pushing the joystick slightly when it is homing?

If you disable the Gamepad in Tool Setup are there still problems homing?  Or only when enabled?


BTW I still have the Microsoft Force Feedback Joystick that we purchased because I thought it would be so cool to have active force feedback for teaching your Spinning machines.  But I guess you thought it was too big and never liked the idea.

Image


Regards

TK





double CKMotionCNCDlg::DoJoyAxis(int axis, int joystick)
{
    double v;

    v = joystick-0x7fff;
    if (ThreadIsExecuting) v=0;
    if (fabs(v) < 1600) v=0;

    v *= m_JogSpeed[axis] * m_JogSpeedOverride[axis] * m_JogSpeedFactor / 32768.0;

    return v;
}


On 12/28/2016 8:41 AM, David Stevenson david.m.stevenson@... [DynoMotion] wrote:
 

Hi Tom,

I did try calibrating the new stick before I posted. This morning I double checked and there is definitely some kind of conflict between the new joystick and KMotionCNC. The machine won't home or initialize with the joystick connected. This is with the latest Windows 10 update installed.

Regards,
David.

On 12/27/2016 9:12 PM, Tom Kerekes tk@... [DynoMotion] wrote:
 

Hi David,

You might try this:

http://www.howtogeek.com/241421/how-to-calibrate-your-gaming-controller-in-windows-10/

Regard

TK


On 12/27/2016 3:44 PM, David Stevenson david.m.stevenson@... [DynoMotion] wrote:
 

Hi Moray,

The gamepad is a standard Logitech F710 (wireless) or an F310 (wired). The joystick is a new(ish) product also from Logitech, but also regular USB connection. I think it is in the deadband, but it seems to be doing funny things to KMotionCNC.

Regards,

David.

On 12/27/2016 5:43 PM, Moray Cuthill moray.cuthill@... [DynoMotion] wrote:
 
Does the gamepad have analogue direction controls, or basic buttons?

The joystick will have analogue controls, and there should be some method to adjust the deadband zone. I've not used a joystick with windows for years, so can't help you with where the calibration setting scan be found.

Moray

On Tue, Dec 27, 2016 at 10:27 PM, david.m.stevenson@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Tom,

I often use a gamepad to move the slides on my machine and it was suggested I try a joystick to help with control.

Logitech makes one they call Extreme 3D Pro so I decided to give it a try. It seems to cause problems with homing during the initialization sequence and also there seems to be sporadic slide movement without anyone touching the stick. Is there a difference in how this joystick would communicate with the KFlop as opposed to a regular gamepad?

Thanks,
David.







Avast
                                    logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com







Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com